<html>
 <head>
  <title>Sample Page that Displays JavaScript Ads</title>
  <style>
     body,td,div,p,{font-family:arial,sans-serif }
     a {text-decoration: none; color: gray}
  </style>

  <script language="JavaScript">
  <!--

  // This function displays the ad results.
  // It must be defined above the script that calls show_ads.js
  // to guarantee that it is defined when show_ads.js makes the call-back.

  function google_ad_request_done(google_ads) {

    // Proceed only if we have ads to display!
    if (google_ads.length < 1 )
      return;

    // Display ads in a table
    document.write("<table cellpadding=\"10\" width=\"5%\" align=\"right\" bgcolor=\"#eeeeff\">");
 
    // Print "Ads By Google" -- include link to Google feedback page if available
    document.write("<tr><td align=\"center\"><font color=\"#6f6f6f\" size=\"-2\">");
    if (google_info.feedback_url) {
      document.write("<a href=\"" + google_info.feedback_url + 
        "\">Ads by Google</a>");
    } else {
      document.write("Ads By Google");
    }
    document.write("</font></td></tr>");  
  
    // For text ads, display each ad in turn.
    // In this example, each ad goes in a new row in the table.
    if (google_ads[0].type == 'text') {
      for(i = 0; i < google_ads.length; ++i) {
        document.write("<tr><td nowrap><font size=\"-1\">" +
          "<a href=\"" +  google_ads[i].url + "\">" +
          google_ads[i].line1 + "</a><br>" +
	    "<a href=\"" +  google_ads[i].url + "\">" +
          google_ads[i].line2 + "<br>" +
          google_ads[i].line3 + "</a><br>" + 
          "<a href=\"" + google_ads[i].url + "\">" + 
          "<font color=\"green\" size=\"-2\">" +
          google_ads[i].visible_url +
          "</a></font></td></tr>"); 
      }
    }

    // For an image ad, display the image; there will be only one .
    if (google_ads[0].type == 'image') {
      document.write("<tr><td align=\"center\">" +
        "<a href=\"" + google_ads[0].url + "\"style=\"text-decoration: none\">" +
        "<img src=\"" + google_ads[0].image_url + 
        "\" height=\"" + google_ads[0].height + 
        "\" width=\"" + google_ads[0].width +
        "\" border=\"0\"></a></td></tr>");
    }

    // Finish up anything that needs finishing up
    document.write ("</table>");
  }

  -->
  </script>
 </head>

 <body>

  <script language="JavaScript">
  <!--

    // This script sets the attributes for requesting ads.
    google_ad_client = "pub-3460518834604685";         
    google_ad_output = "js";         
    google_max_num_ads = 4;         
    google_safe     = "medium";
    google_feedback = "on";
    google_ad_type  = "text_image";
    google_color_line = "ff0000";     
    
  -->
  </script>

  <!-- Content of the page -->
  <h2>Everything You Ever Wanted to Know About Cheese</h2>


  <!-- Put this script where you want the ads to appear -->
  <script language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  </script>

  <p>Some interesting info about cheese...</p>

</body>
</html>


